Latest Questions

Python continue function wont start the code all over again

I am trying to start the whole code again but it restarts the current loop can someone help? while guessp1 & guessp2 != answer: if guessp1 == answer

Why don't we have to declare static functions the same way we need to declare static variables in c++?

Consider the following struct: struct Toto { static int a; static void Print() { std::cout << a; } }; And the following main functio

SQL Server backup using powershell in Task scheduler

I am using PowerShell to backup a SQL Server database and use Windows task scheduler to schedule the script Test Run the script manually, it works. Both SQL Ser

Cannot download file when using Chrome on an iOS device

I am working on an Angular application which connects with a Web Api to download files as a Blob. The files get downloaded fine on all mobile devices with the e

Unable to close or drag BottomSheet/TopSheet when AppBarLayout pushes RecyclerView below the peek height

I am unable to close or drag the TopSheet/BottomSheet when the AppBarLayout is expanded. After analyzing it, I realized that it can be dragged if I pulled it fr

Can associative entities be inherited?

Suppose in the ER diagram there is an associative entity named makes call which connects the entities External entity and Internal entity. Is it possible for th

WSO2 - Unable to deploy synapse import:{org.wso2.carbon.connector}XXX. Required library not found

I get this error when I try to use external connector on wso2 studio 7: Unable to deploy synapse import:{org.wso2.carbon.connector}XXX. Required library not fou

Set a new field based on calculations in MongoDB update statement

I use the attribute pattern approach in my collection: [ { _id: "id1", _cells: [ { k: "key1", v: "value1" }, { k: "key2", v: "value2" },

Import Error: cannot import name 'BatchNormalization' from 'keras.layers.normalization'

I am getting the following error message when trying to run this AlexNET python code. Traceback (most recent call last): File "C:\Users\PycharmProjects\Local-

find files with similar ID from different folder

I have two folder A and B. in each folder I have text files containing participant IDs starting from 100. some files can be present in both folders. i want to c

How do obtain max and mean values from different columns with a Date column condition in R?

I am trying to get the daily mean and maximum values for each pollutant. For each of the monitoring stations, the daily mean and maximum values of each pollutan

AttributeError: 'tuple' object has no attribute 'read' music21 .show()

i have been trying to show a score converted from krn file import music21 as m import os test_data = "D:/Programming/DATA - SCIENCE/deep learning/music gener

how to create a employee multiple Experince in django

How to Create Multiple Experinces in Django This is Model.py Files code from django.db import models # Create your models here. class Detail(models.Model):

the function display_html not working in Jupyter Lab

This "R code" works fine in Jupyter but not in lab: library(IRdisplay) display_html( ' <script> code_show=true; function code_toggle() { if (code_s

Unable to send acknowledgemnt properly in TCP connection (C#)

I have a client server model. 192.168.77.6 is the client (my code). 192.168.77.18 is a server device. I am sending a request to the server for a response. Once

How do I import an ES6 JavaScript module in my VS Code extension written in TypeScript?

I am developing a VS Code extension in TypeScript and I am trying to import a JavaScript library from npm that is packaged with "type": "module", in its package

how to read a csv file edited from excel in python?

Hi I tried loading the csv file that has been edited and saved as csv comma delimited. However it's not loading right. I used the normal pd_read_csv like so. df

Find booking Id between 2 dates SQL (Postgresql)

I have table booking with below records. event_type | from_date | to_date -------------+---------------------+--------------------- party

getting springboot to support groovy 4.0 (apache packaging) | needed 3.0.0-M2 and more

spring-boot > 2.3.1 will grab groovy-bom from codehaus instead of org.apache.groovy packaging, even if you declare org.apache.groovy dependendices I found th

Add the same value in multiple cells when parsing data to a spreadsheet with openpyxl

Can I add the same value in two cells at the same line of code I want to put "Run No." in the cell ["A1"] and ["B1"]. I could do this sheet["A1"] = "Run No." s

Converting a steam hex into steam community id

I am using lua FiveM to get steam hex of a player but i want to convert that hex to a community id like 76561198364192600. How do i got about that? is there an

Insert javaScript function inside FreeMarker template

I have a problem introducing a js function inside ftl. I have a javaScript function which converts a value from bytes to kilobytes, on the other side I need to

Configure Angular Routes with Auth0s AuthGuard

I would like to configure my lazy loaded routes nested, which are only available if the users is logged in. Authentication works with Auth0s and it's correspond

Convert given UTC timestamp string to unix timestamp

I'm struggling with this small snippet: import time from datetime import datetime start = "2022-05-14T10:00:00" start_date = datetime.fromisoformat(start) star

How to grab data from the body and from the response of the call and use this data in the next call for the bulk run

I have got an interesting task and am not sure how to proceed with this I have 1 POST request to create the Release for each Project. The request body has the "

Supplied javaHome must be a valid directory. You supplied: C:\Program Files\Java\jdk1.8.0_241

I got this error message when I build ionic cordova for android: Supplied javaHome must be a valid directory. You supplied: C:\Program Files\Java\jdk1.8.0_241

Why is not my Xcode build shown in TestFlight tab of Apple's App Store Connect

I don't see my build kPdiag8 within App Store Connect > TestFlight tab's build list. Step 1. I created a test app in Xcode then built > archived > dist

Set color of elements before they render in Autodesk Forge viewer

We load the models using Forge Viewer where all the elements are of the same color. We need to be able to set the color of these elements dynamically before For

How to fix "Powershell needs Windows management system 4.0'

I want to know How i install Powershell in my win 10 pc because it dont came installed in it Please help me. I will be very thankful to you

How to install GitLab Runner on Ubuntu Server?

I have downloaded the package for the system: curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb" And then instal